package com.ly.mpayment.persist.service.timer;

import com.ly.mpayment.persist.entity.ProductPriceUp;
import com.ly.mpayment.persist.entity.ProductTimerUp;
import com.ly.mpayment.persist.hibernate.Page;
import net.sf.json.JSONObject;

import java.util.List;
import java.util.Map;

public interface ProductTimerUpService {
    void saveProduct(ProductTimerUp timer);

    boolean updateProductTimer(JSONObject json);

    Page<ProductTimerUp> queryProductTimerPage(Map<String, Object> parameters, int start, int pageSize);

    List<ProductPriceUp> detailProductTimer(String id);

    List<ProductTimerUp> findExecute(String nowDateYMDHMS);

    void updateProduct(ProductTimerUp timer);

    boolean executeProductTimer(String id);
}
